import Vue from "vue";
import App from "./App.vue";
import VueRouter from "vue-router";
Vue.use(VueRouter);
Vue.config.productionTip = false;

const routes = [
  {
    path: "/",
    redirect: "/house_custom",
  },
  {
    name: "house_custom",
    path: "/house_custom",
    component: () => import("./house_custom.vue"),
  },
  {
    name: "house_preview",
    path: "/house_preview",
    component: () => import("./house_preview.vue"),
  },
];
const router = new VueRouter({
  mode: "history",
  routes: routes,
});

new Vue({
  render: (h) => h(App),
  router,
}).$mount("#app");
